package com.barbeque.mall.service;

import com.barbeque.mall.bean.BasePageInfo;
import com.barbeque.mall.bean.param.CommonData;
import com.barbeque.mall.bean.system.MarketPermission;
import com.barbeque.mall.bean.system.MarketRole;
import com.barbeque.mall.bean.system.MarketRoleOptions;
import com.barbeque.mall.bean.system.bo.FirstClass;
import com.barbeque.mall.bean.system.bo.MarketPermissionBO;

import java.util.List;

/**
 * @author 苏东宇
 * @since 2022/07/17 11:19
 */

public interface SysRoleService {

    CommonData getAdminRoleOptions();

    CommonData getRoleList(BasePageInfo basePageInfo, String name);

    int createRole(MarketRole marketRole);

    int updateRole(MarketRole marketRole);

    int deleteRole(MarketRole marketRole);

    List<String> getPermissionsByRoleId(Integer roleId);

    List<MarketRoleOptions> getMarketRoleOptionsByPid(Integer pid);

    int deleteRolePermissionByRoleId(Integer roleId);

    int createRolePermission(MarketPermissionBO marketPermissionBO);
}
